import Vue from 'vue';
import App from './App.vue';
import qs from 'qs';
import axios from 'axios';
import router from './router';
import store from './store';
import ViewUI from 'view-design';
import L from 'leaflet';
import moment from 'moment';
import xmlParser from 'fast-xml-parser';
import protobuf from 'protobufjs';
import _ from 'lodash';
import XLSX from 'xlsx';
import {axiosConfig,routerConfig} from '@/global/config'
import 'view-design/dist/styles/iview.css';
import './frames/flex.css';
import './global/config.css';
import './frames/animate.css';
import '@/frames/leaflet/leaflet.css';

Vue.config.productionTip = false
Vue.prototype.axios = axios;
Vue.prototype.qs = qs;
Vue.prototype.L = L;
Vue.prototype._ = _;
Vue.prototype.XLSX = XLSX;
Vue.prototype.protobuf = protobuf;
Vue.prototype.xmlParser = xmlParser;
Vue.prototype.moment = moment;
Vue.use(ViewUI);

axiosConfig(ViewUI.Message,axios);
ViewUI.Message.config({
    top: 50,
    duration: 3
});
routerConfig(router);

new Vue({
    router, store,
    render: h => h(App),
}).$mount('#app');